//
//  SD_headerCell.m
//  GSD_WeiXin(wechat)
//
//  Created by 湖南机友科技有限公司 on 2018/3/21.
//  Copyright © 2018年 GSD. All rights reserved.
//

#import "SD_headerCell.h"

@implementation SD_headerCell

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier{


    if (self=[super initWithReuseIdentifier:reuseIdentifier]) {

        [self initWithUI];//_init表示初始化方法
    }

    return self;
}


-(void)initWithUI{


    //选中按钮
    self.selectBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    self.selectBtn.frame = CGRectMake((kk_WIDTH -  kk_WIDTH/2)/2, 10, kk_WIDTH/2, 100);
    [self.selectBtn setTitle:@"添加手机联系人" forState:UIControlStateNormal];
    [self.selectBtn setTitleColor:[UIColor lightGrayColor] forState:UIControlStateNormal];
    [self.selectBtn setImage:[UIImage imageNamed:@"phone197"] forState:UIControlStateNormal];

    [self.selectBtn verticalCenterImageAndTitle:10.0f];
    [self addSubview:self.selectBtn];


}
@end
